<%@ page contentType="text/html; charset=UTF-8"%>
<%@ include file="/WEB-INF/jsp/common/init.jsp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<jsp:include page="/WEB-INF/jsp/common/common.jsp" />
	<script type="text/javascript">
		function query(){
			$("#form1").submit();
		}
		
		function myAdd_form(){
			var url = "${path}/ix/seal/config/add_form.htm";
			$("#form1").attr("action",url);
			$("#form1").submit();
		}
		
		function myEdit_form(seal_type_config_id){
			
			var url = "${path}/ix/seal/config/edit_form.htm?seal_type_config_id="+seal_type_config_id;
			$("#form1").attr("action",url);
			$("#form1").submit();
		}
		
		function myDel(seal_type_config_id){
			var url = "${path}/ix/seal/config/del.htm?seal_type_config_id="+seal_type_config_id;
			$("#form1").attr("action",url);
			$("#form1").submit();
		}
	
	</script>
</head>
<body>
	<jsp:include page="/WEB-INF/jsp_lib/tip.jsp" />
	<div>
		<form action="${path}/ix/seal/config/list.htm" id="form1" method="post">
			<h2>
				<div>印章类型配置</div>
			</h2>
			
			<table width="100%" class="listlindex">
				<tr>
					<th>印章类型编码</th>
					<th>业务专用章</th>
					<th>用印方式</th>
					<th>新章申请 最终审核机构</th>
					<!-- <th>印章停用 最终审核机构</th> -->
					<th>印章销毁 最终审核机构</th>
					<th>描述</th>
					<th>操作</th>
				</tr>
				<c:if test="${fn:length(list)==0}">
					<tr>
						<td colspan="7"><div class="tip_div">暂无记录.</div></td>
					</tr>
				</c:if>	
				<c:forEach items="${list}" var="v">					
					<tr>
						<td>${v.code}</td>
						<td>${v.name}</td>
						<td>${v.user_way}</td>
						<td>${v.verify_new}</td>
						<%-- <td>${v.verify_stop}</td> --%>
						<td>${v.verify_destory}</td>
						<td>${v.note}</td>
						<td>
						<!--	<a href="javascript:goDetail('${v._id}');">【查看详情】</a>	-->
							<a href="javascript:myEdit_form('${v._id}');">【修改】</a>	
							<a onclick="return confirm('确定删除 (${v.name}) 吗？')"  href="javascript:myDel('${v._id}');">【删除】</a>	
						</td>
					</tr>
				</c:forEach>
			</table>	
			<div id="response"></div>
			<div class="options">
				<p>
					<a href="javascript:myAdd_form();">【添加】</a>
				</p>
			
				<div class="clear"></div>
			</div>			
		</form>	
	</div>
</body>
</html>
